package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.template.DestinationTemplate;
import cn.wolfcode.luowowo.search.template.UserInfoTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface IDestinationRepository extends ElasticsearchRepository<DestinationTemplate,Long> {
    /**
     * jpa 方法,根据关键字获取目的地模板对象
     * @param keyword
     * @return
     */
    DestinationTemplate findByName(String keyword);
}
